#include<iostream>
using namespace std;
struct Student {
  string name;
  int age;
  int score;
};

void printStudent(const Student * p) {
  // p->age = 33; 报错 常量指针指向的值 即使是修改结构体的某个属性也不能修改
  cout << p->age <<endl;
}


int main() {
  Student s1 = {"xx", 30, 100};
  printStudent(&s1); // 引用传递
  return 0;
};
